<%@ page import="java.util.*" contentType="text/html; charset=utf-8" %>
<%
//    String path = request.getContextPath();
//    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    String prompt = (String) request.getSession().getAttribute("prompt");
    if (prompt != null) {
        out.println("<script>alert('" + prompt + "');</script>");
        request.getSession().removeAttribute("prompt");
    }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%--    <base href="<%=basePath%>">--%>
    <title>学生实名注册</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/myCss.css">
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
</head>
<body>
<div class="box">
    <div class="login-box">
        <div class="login-title text-center">
            <h1><small>选课系统实名注册</small></h1>
        </div>
        <div class="login-content ">
            <div class="form">
                <form action="../doorServlet?flag=signup" method="post">
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
                                <label for="nickname"></label>
                                <input type="text" id="nickname" name="nickname" class="form-control"
                                       placeholder="昵称">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
                                <label for="name"></label>
                                <input type="text" id="name" name="name" class="form-control" placeholder="姓名">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                                <label for="psw"></label>
                                <input type="password" id="psw" name="psw" class="form-control" placeholder="密码">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                                <label for="classroom"></label>
                                <input type="text" id="classroom" name="classroom" class="form-control"
                                       placeholder="班级">
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                                <label for="department"></label>
                                <input type="text" id="department" name="department" class="form-control" placeholder="院系">
                            </div>
                        </div>
                    </div>
                    <div class="form-group form-actions">
                        <div class="col-xs-4 col-xs-offset-4 ">
                            <button type="submit" class="btn btn-sm btn-info"><span
                                    class="glyphicon glyphicon-off"></span>注册
                            </button>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-6 link">
                        </div>
                        <div class="col-xs-6 link">
                            <p class="text-center remove-margin"><a href="../index.jsp"><small>去登录</small></a></p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>